/*
* $Id: DBRecord.java 234 2010-12-29 13:37:20Z volokaleks@yandex.ru $
*
* Copyright 2008-2010 by Volokitin Alexey
* All rights reserved
*
*/
package apiary.db;

/**
 * Common interface for database records
 * @author lexus
 */
public interface DBRecord
{
    /**
     * Gets byte array of record
     * @return byte array
     */
    public byte[] getData();
    /**
     * Sets byte array record.
     * Array will be parsed and all fields of it will be filled
     * @param data byte array
     * @return number read byte
     */
    public int setData(byte[] data);
}
